<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/head :: common_head(~{::title},~{},~{},~{})">
    <title>修改密码</title>
</head>
<body>
<header th:replace="admin/header :: common_header" class="header"></header>
<div class="d-flex align-items-stretch">
    <nav th:replace="admin/menu :: common_menu" id="sidebar"></nav>
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">修改密码</h2>
            </div>
        </div>
        <section class="no-padding-top no-padding-bottom">
            <div class="card">
                <div class="card-header" style="color: #8a8d93; font-size: 16px">修改密码</div>
                <div class="card-body">
                    <form action="updPwdSub" method="post" class="text-left form-validate" id="updPassword">
                        <div class="form-group">
                            <label for="oldPassword" class="col-sm-2 col-form-label">原密码</label>
                            <div class="col-sm-10">
                                <input name="oldPassword" type="password" class="form-control" id="oldPassword" data-msg="请输入原密码..." required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="newPassword" class="col-sm-2 col-form-label">新密码</label>
                            <div class="col-sm-10">
                                <input name="newPassword" type="password" class="form-control" id="newPassword" data-msg="请输入新密码..." required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="rePassword" class="col-sm-2 col-form-label">确认密码</label>
                            <div class="col-sm-10">
                                <input name="password" type="password" class="form-control" id="rePassword" data-msg="两次输入的密码不符..." required>
                            </div>
                        </div>
                        <span class="msg" th:text="${msg}"></span>
                        <div class="form-group-material col-md-4">
                            <input type="submit" value="修改密码" class="btn btn-danger">
                        </div>
                    </form>
                </div>
            </div>
        </section>
        <footer th:replace="admin/footer :: common_footer" class="footer"></footer>
    </div>
</div>
</body>
</html>